using System;

namespace Impact.Web.Controls
{
    public partial class StateList : System.Web.UI.UserControl
    {

        /// <summary>
        /// current value of the dropdown
        /// </summary>
        public string SelectedValue
        {
            get { return states.SelectedValue; }
            set { states.SelectedValue = value; }
        }

        /// <summary>
        /// is the user required to select a state?
        /// </summary>
        public bool Required
        {
            get { return stateRequired.Enabled; }
            set { stateRequired.Enabled = value; }
        }

        /// <summary>
        /// is this control active?
        /// </summary>
        public bool Enabled
        {
            get { return states.Enabled; }
            set { states.Enabled = value; }
        }

        /// <summary>
        /// gets or sets the CSS class used on this control
        /// </summary>
        public string CssClass
        {
            get { return states.CssClass; }
            set { states.CssClass = value; }
        }

    }
}